/**
 * <p>功能:高级表单。 <p>
 * @extends Wys.basic.BaseForm
 * @author wys
 */
Ext.define('Jason.view.example.form.advanced.MainView', {
    extend: 'Wys.basic.BaseForm',
    requires: [
        'Wys.utils.Config',
        'Wys.form.field.MoneyField',
        'Wys.basic.BaseForm',
        'Wys.combobox.ArrayCombobox',
        'Wys.combobox.RemoteCombobox',
        'Wys.picker.ColorChoose',
        'Wys.form.field.CodeField',
        'Wys.combobox.ComboTree',
        'Wys.form.MultiComboBox',
        'Wys.picker.BeginEndDate',
        'Wys.form.field.Date.TimePickerField',
        'Wys.form.field.CityField'
    ],
    xtype: 'example_form_advanced_view',
    defaults: {
        anchor: '100%',
        margin: 8
    },
    items: [{
        xtype: 'ArrayCombobox',
        fieldLabel: '本地数组下拉框',
        arrayData: [['是', 1], ['否', 0]]
    }, {
        xtype: 'RemoteCombobox',
        fieldLabel: '加载远端数据',
        proxy_url: cfg.requestUrl + 'localData/example/form/ComboxValue' + cfg.suffix,
        proxy_reader_root: 'root'
    }, {
        xtype: 'comboTree',
        fieldLabel: '下拉树',
        displayField: 'text',//默认ID
        valueField: 'id',
        store: Ext.create('Ext.data.TreeStore', {
            data: [
                {
                    "id": 1, "text": "行政部", "children": [
                        { "id": 11, "text": "培训部门", "leaf": true },
                        { "id": 12, "text": "人力资源部门", "leaf": true }
                    ]
                },
                { "id": 2, "text": "研发中心", "leaf": true },
                { "id": 3, "text": "产品中心", "leaf": true },
                { "id": 4, "text": "设计中心", "leaf": true },
                { "id": 5, "text": "营销中心", "leaf": true },
                { "id": 6, "text": "大客户服务中心", "leaf": true },
                { "id": 7, "text": "财务中心", "leaf": true }
            ]
        })
    }, {
        xtype: 'multicombobox',
        fieldLabel: '多选下拉框',
        store: Ext.create('Ext.data.TreeStore', {
            data: [
                { "id": 0, "text": "培训部门", "leaf": true },
                { "id": 1, "text": "人力资源部门", "leaf": true },
                { "id": 2, "text": "研发中心", "leaf": true },
                { "id": 3, "text": "产品中心", "leaf": true },
                { "id": 4, "text": "设计中心", "leaf": true },
                { "id": 5, "text": "营销中心", "leaf": true },
                { "id": 6, "text": "大客户服务中心", "leaf": true },
                { "id": 7, "text": "财务中心", "leaf": true }
            ]
        })
    }, {
        xtype: 'colorChoose',
        fieldLabel: '颜色选择器'
    }, {
        xtype: 'codeField',
        readOnly: true,
        fieldLabel: '代码编辑器',
        value: "<html>略.....</html>"
    }, {
        xtype: 'beginEndDate',
        labelWidth: 100,
        fieldLabel: '时间区间选择'
    }, {
        xtype: 'moneyfield',
        emptyText: 'xtype=moneyfield',
        labelWidth: 100,
        fieldLabel: '钱币输入框'
    }, {
        xtype: 'cityField',
        labelWidth: 100,
        fieldLabel: '城市联动'
    }, {
        xtype: 'htmlEditor',
        height: 600
    }/*,{
		xtype : 'datetimefield',
		width : 300,
        labelWidth : 80,
        fieldLabel: '带时间选择期',
        format: 'Y-m-d H:i:s ',
        name:'stime'
	}*/]
});